home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
v9n03.arc
/
SETUPH2.BAT
< prev
next >
Wrap
DOS Batch File
|
1990-01-12
|
7KB
|
133 lines
ECHO OFF
ECHO ╔════════════════════════════════════════════════════════════╗
ECHO ║ SETUP2 - Toolkit install for users who wish to check the ║
ECHO ║ parition sector on their 2nd physical hard disk. ║
ECHO ╟────────────────────────────────────────────────────────────╢
ECHO ║PCDATA TOOLKIT 1.0 Copyright (C) 1990 Ziff Communication Co.║
ECHO ║ PC Magazine ■ Wolfgang Stiller ║
ECHO ╚════════════════════════════════════════════════════════════╝
IF "%1"=="" goto help
IF %1==? goto help
CLS
ECHO ╔═════════════════════════════════════════════════════════════════════════╗
ECHO ║ This batch file is about to put PCDATA Toolkit files onto the ║
ECHO ║ RECOVERY diskette. Use only if you boot from 2nd physical hard disk. ║
ECHO ╟─────────────────────────────────────────────────────────────────────────╢
ECHO ║ You should be logged onto the drive from which you normally boot. ║
ECHO ║ The current directory must be the one containing the toolkit files. ║
ECHO ║ The RECOVERY diskette should be in drive %1. If this is not the case, ║
ECHO ║ please hit CNTL/BREAK to terminate this batch file. ║
ECHO ╚═════════════════════════════════════════════════════════════════════════╝
PAUSE
IF NOT EXIST CHKBOOT.COM GOTO BadDisk
IF NOT EXIST CHKFILEC.COM GOTO BadDisk
GOTO Start
:Help
ECHO ╔═════════════════════════════════════════════════════════════════════════╗
ECHO ║ Syntax is: SETUPH2 a: ║
ECHO ║ where a: is the drive containing the RECOVERY diskette. ║
ECHO ╟─────────────────────────────────────────────────────────────────────────╢
ECHO ║ SETupH2 will check the partition table on the 2nd physical hard disk and║
ECHO ║ the boot sector on the current disk. The reload files plus all needed ║
ECHO ║ toolkit files will be copied to the RECOVERY diskette. ║
ECHO ╟─────────────────────────────────────────────────────────────────────────╢
ECHO ║ Next SETupH2 will copy all needed files for the CHECK diskette. ║
ECHO ╚═════════════════════════════════════════════════════════════════════════╝
GOTO End
:BadDisk
ECHO ╔═════════════════════════════════════════════════════════════════════════╗
ECHO ║ This batch file MUST be executed from the directory containing the ║
ECHO ║ PCDATA Toolkit files. One or more of these files is missing! ║
ECHO ╟─────────────────────────────────────────────────────────────────────────╢
ECHO ║ Please check your current directory and disk and try again. ║
ECHO ╚═════════════════════════════════════════════════════════════════════════╝
GOTO END
:BadChk
ECHO ╔═════════════════════════════════════════════════════════════════════════╗
ECHO ║ An unrecoverable error has occurred executing CHKboot. This is usually ║
ECHO ║ due to disk problems such as no space or write protect. Do you really ║
ECHO ║ have a second physical hard (fixed) disk? ║
ECHO ╚═════════════════════════════════════════════════════════════════════════╝
GOTO END
:NoSYS
ECHO ╔═════════════════════════════════════════════════════════════════════════╗
ECHO ║ The CHECK diskette must have been formatted with a "FORMAT a:/S" so ║
ECHO ║ that a copy of the system is on it. Please do a FORMAT and re-execute ║
ECHO ║ this batch file. ║
ECHO ╚═════════════════════════════════════════════════════════════════════════╝
GOTO END
:Start
CHKboot/I/2
IF ERRORLEVEL 64 GOTO BADchk
COPY SETUPSM2.CPY SCANMAX.BAT
COPY CHKFILEC.COM %1
COPY CFCOMPC.COM %1
COPY CHKFILE.COM %1
COPY CFCOMP.COM %1
COPY CHKBOOT.COM %1
COPY LODBOOT.COM %1
COPY *.SCT %1
COPY *.PRM %1
COPY MIRDIR.COM %1
COPY XALL.COM %1
COPY SCAN*.BAT %1
COPY FASTRUN.BAT %1
COPY DSP*.BAT %1
COPY RELODB.BAT %1
DEL @@BOOT.SCT
DEL @@PARTIT.SCT
: Create special marker file so other batch files know about this one
TYPE %1PCITKR.MRK >%1PCITKR.MRK
ECHO ╔═════════════════════════════════════════════════════════════════════════╗
ECHO ║ Your RECOVERY diskette has been built. We are now checking the files ║
ECHO ║ written to it. No files should be missing. All toolkit files should ║
ECHO ║ match (This means all .COM and .BAT files). If any files are deleted ║
ECHO ║ check that there is enough room on the diskette. If any errors show up,║
ECHO ║ please get a clean copy of the toolkit. ║
ECHO ╟─────────────────────────────────────────────────────────────────────────╢
ECHO ║ Files: IBMBIO.COM, and IBMDOS.COM may have different names on some PCs. ║
ECHO ╚═════════════════════════════════════════════════════════════════════════╝
CHKfileC %1*.* ))INTRB.LOG/I:))
CFcompC ))INTR2.LOG ))INTRB.LOG/P/O
DEL ))INTRB.LOG
ECHO
ECHO ╔═════════════════════════════════════════════════════════════════════════╗
ECHO ║ We are now creating the CHECK diskette. Please insert it in drive %1 ║
ECHO ╚═════════════════════════════════════════════════════════════════════════╝
PAUSE
IF NOT EXIST %1COMMAND.COM GOTO NoSYS
COPY CHKFILEC.COM %1
COPY CFCOMPC.COM %1
COPY CHKBOOT.COM %1
COPY CHKBOOT.PRM %1
COPY MIRDIR.COM %1
COPY XALL.COM %1
COPY SCANSYS.BAT %1
COPY SCANDIR.BAT %1
COPY CH*.BAT %1
COPY DSP*.BAT %1
COPY SCANRFDR.BAT %1
COPY SCANMAX.BAT %1
COPY FASTRUN.BAT %1
COPY DELFILES.BAT %1
COPY INIT*.BAT %1
DEL *.PRM
: Create special marker file so other batch files know about this one
TYPE %1PCITKC.MRK >%1PCITKC.MRK
ECHO ╔═════════════════════════════════════════════════════════════════════════╗
ECHO ║ Your CHECK diskette has been built. We are now checking the files ║
ECHO ║ written to it. No files should be missing. All toolkit files should ║
ECHO ║ match (This means all .COM and .BAT files). If any files are deleted ║
ECHO ║ check that there is enough room on the diskette. If any errors show up,║
ECHO ║ please get a clean copy of the toolkit. ║
ECHO ╟─────────────────────────────────────────────────────────────────────────╢
ECHO ║ Files: IBMBIO.COM, and IBMDOS.COM may have different names on some PCs. ║
ECHO ╚═════════════════════════════════════════════════════════════════════════╝
CHKfileC %1*.* ))INTCB.LOG/I:))
CFcompC ))INTC2.LOG ))INTCB.LOG/P/O
DEL ))INTCB.LOG
ECHO ╔════════════════════╗
ECHO ║ SETUP is complete! ║
ECHO ╚════════════════════╝
:End